package four.book.web;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import four.book.biz.BookBiz;
import four.book.entity.Book2;

/**
@author ��־
@version 1.0
<p>���ڣ�2018��12��17�� ����7:43:42</p>
*/
@Controller
@RequestMapping("/Book")
public class BookController {

	@Resource
	private BookBiz bookBiz;
	
	@RequestMapping("/toAddBook")
	public String toAddBook(){
		return "ManegerHome";
	}
	/**
	 * 新增书籍
	 * @param book
	 * @return
	 */
	@RequestMapping("/addBook.do")
	public String addBook(Book2 book){
		bookBiz.addbook(book);
		return "Maneger";
	}
	
	@RequestMapping("/deleteBook.do")
	public String deleteBook(Book2 book){
		
		return "ManegerHome";
	}
	
}
